
package com.jalarbee.stock.sales.dao;

import com.jalarbee.core.bootik.client.business.Client;
import com.jalarbee.core.generic.dao.GenericDao;
import com.jalarbee.core.user.business.User;
import com.jalarbee.core.util.Chunk;
import com.jalarbee.stock.category.business.Category;
import com.jalarbee.stock.product.business.Product;
import com.jalarbee.stock.sales.business.Sale;
import java.util.List;

/**
 *
 * @author Abdoulaye <b>Ikhnaton</b> Diallo
 */

public interface SaleDao extends GenericDao<Sale, Long> {

    List<Sale> getSales(Category category, Chunk chunk, boolean includeLineItems);
    List<Sale> getSales();
    List<Sale> getSales(Product product, Chunk chunk, boolean includeLineItems);
    List<Sale> getSales(Client customer, Chunk chunk, boolean includeLineItems);
    List<Sale> getSales(User salesperson, Chunk chunk, boolean includeLineItems);
}
